package com.zzyl.framework.interceptor;

import cn.hutool.core.map.MapUtil;
import io.jsonwebtoken.Claims;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//小程序登录token校验
@Component
public class MemberInterceptor implements HandlerInterceptor {

    //1.获取redis中的token
    //2.判断token是否为空
    //3.获取token中的数据
    @Override
    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
     if(!(handler instanceof  HandlerInterceptor)){

     }




    }

    @Override
    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {

    }
}
